#ifndef ORDERITEMADDITIONMODEL_H
#define ORDERITEMADDITIONMODEL_H

#include "standard-database-model.h"

class OrderItemAdditionModel : public StandardDatabaseModel
{
    Q_OBJECT
public:
    explicit OrderItemAdditionModel(QObject *parent = 0);

    enum OrderItemAdditionColumns
    {
        NameColumn,
        PriceColumn,
        VatColumn,
        QuantityColumn,
        WarehouseColumn
    };

public slots:
    void initialize();
    void loadData();

private slots:
    void setupInternalModel();
    void continueLoadData (ModelResult *result);
    void continueLoadData2 (ModelResult *result);
    void continueLoadData3 (ModelResult *result);

private:
    QAbstractTableModel* m_orderItemModel;
    QAbstractTableModel* m_productInWarehouseModel;
    QAbstractTableModel* m_warehouseModel;
};

#endif // ORDERITEMADDITIONMODEL_H
